import asyncio

from sai.request import Request
from sai.response import Response


def test_fetch():
    '''
pytest -s -k test_fetch
    '''
    url = 'https://scrape.center/'
    request = Request(url, 'get')
    response = asyncio.get_event_loop().run_until_complete(request.fetch())
    print(response.html)
    assert response is not None
    assert type(response.html) == str
    assert len(response.html) > 0
